import sys
from PyQt6.QtWidgets import QApplication
from PyQt6.uic import load_ui

app = QApplication(sys.argv)

window = load_ui.loadUi("widget.ui")
window.show()
app.exec()